<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,app.stock.common.*,app.stock.web.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login</title>
</head>
<body>
<%
	String errorMsg = "";
	if (null != request.getAttribute(WebConstants.key_attr_login)) {
		boolean login = (Boolean) request.getAttribute(WebConstants.key_attr_login);

		if (!login) {
			errorMsg = "用户名密码错误";
		}
	}
%>
<div align="center">
<p><%=errorMsg%></p>
<form method="post" action="StockCtrl?page=transaction_list.jsp">
<table>
	<tr>
		<td><label><%=Account.nameLabel%></label></td>
		<td><input name="j_username" type="text"></td>
	</tr>
	<tr>
		<td><label><%=Account.passwordLabel%></label></td>
		<td><input name="j_password" type="password"></td>
	</tr>
	<tr>
		<td><input type="submit" value="<%=Constants.label_operationConfirm%>"></td>
		<td><input type="reset" value="<%=Constants.label_operationCancel%>"></td>
	</tr>
</table>
</form>
</div>
</body>
</html>